package com.service;

import com.dto.BaseDto;
import com.entity.Buyer;
import com.page.PageInfo;

public interface BuyerService {

    public Buyer getByBuid(String buid);
    public BaseDto<Buyer> getAll();
    public BaseDto<Buyer> getAllByPage(PageInfo pageInfo);

    public BaseDto<Buyer> searchNameByPage(PageInfo pageInfo, String adname);

    /**
     * 根据主键查询
     * @param buid
     * @return
     */
    public BaseDto getBuyerByBuid(String buid);

    /**
     * 添加一个实体
     * @param buyer
     * @return
     */
    public BaseDto addBuyer(Buyer buyer);
    /**
     * 修改实体
     */
    public BaseDto updateBuyer(Buyer buyer);
    public BaseDto updateBuyerByExample();

    /**
     * 删除一个实体
     * @param buid
     * @return
     */
    public BaseDto deleteBuyerByPrimayKey(String buid);

    /**
     * 删除实体根据示例
     * @return
     */
    public BaseDto deleteBuyerByExample();


    public  BaseDto getByBuidWithOrderInfos(String buid);

    public void test(Integer test1, String test2);
}
